@import "./vars.scss";
*,
*::after,
*::before {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
dl,
dd,
form,
input[type="checkbox"],
input[type="radio"],
figure,
pre {
    margin: 0;
}

body {
    font-size: 14px;
    min-width: 1130px;
    font-family: sscr, "思源黑体", "微软雅黑", Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;
    color: #333;
    background-color: $back3;
}

html,
body {
    width: 100%;
}

ol,
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

i,
em,
dfn {
    font-style: normal;
}

img {
    border: 0;
    vertical-align: top;
}


/* ie6 <img>会有个border */

a {
    color: inherit;
    text-decoration: none !important;
}

table {
    border-collapse: collapse;
}

th,
td {
    padding: 0;
}

input,
button,
select,
textarea {
    padding: 0;
    outline: none;
}


/* 清除链接和按钮再点击时的高亮颜色 */

a,
input[type="button"],
button {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-appearance: none;
    border-radius: 0;
}


/* 清除IOS下按钮的圆角 */

pre,
code {
    font-family: "source-code-pro", Consolas, monospace !important;
}

// font
@font-face {
    font-family: sscb;
    src: url('../font/SOURCEHANSANSCN-BOLD.OTF');
}

@font-face {
    font-family: sscr;
    src: url('../font/SourceHanSansCN-Regular.otf');
}

@font-face {
    font-family: sscm;
    src: url('../font/SourceHanSansCN-Medium.otf');
}

@font-face {
    font-family: sscl;
    src: url('../font/SourceHanSansCN-Light.otf');
}

@font-face {
    font-family: itcdi;
    src: url('../font/ITCAvantGardeStd-DemiCn.otf');
}

@font-face {
    font-family: itcbk;
    src: url('../font/ITCAvantGardeStd-Bk.otf');
}

@font-face {
    font-family: itcmd;
    src: url('../font/ITCAvantGardeStd-MdCn.otf');
}

@font-face {
    font-family: itcbdcn;
    src: url('../font/ITCAvantGardeStd-BoldCn.otf');
}

@font-face {
    font-family: ssnm;
    src: url('../font/SourceHanSansCN-Normal.otf');
}

::selection {
    background: $color3;
    color: #fff;
}

::-moz-selection {
    background: $color3;
    color: #fff;
}

::-webkit-selection {
    background: $color3;
    color: #fff;
}


/*! locomotive-scroll v4.1.3 | MIT License | https://github.com/locomotivemtl/locomotive-scroll */

html.has-scroll-smooth {
    overflow: hidden;
    height: 100vh;
}

html.has-scroll-dragging {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.has-scroll-smooth body {
    overflow: hidden
}

.has-scroll-smooth [data-scroll-container] {
    min-height: 100vh
}

[data-scroll-direction=horizontal] [data-scroll-container] {
    display: inline-block;
    height: 100vh;
    white-space: nowrap
}

[data-scroll-direction=horizontal] [data-scroll-section] {
    display: inline-block;
    height: 100%;
    vertical-align: top;
    white-space: nowrap
}

.c-scrollbar {
    height: 100%;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    transform-origin: center right;
    transition: transform .3s, opacity .3s;
    width: 11px
}

.c-scrollbar:hover {
    transform: scaleX(1.45)
}

.c-scrollbar:hover,
.has-scroll-dragging .c-scrollbar,
.has-scroll-scrolling .c-scrollbar {
    opacity: 1
}

[data-scroll-direction=horizontal] .c-scrollbar {
    bottom: 0;
    height: 10px;
    top: auto;
    transform: scaleY(1);
    width: 100%
}

[data-scroll-direction=horizontal] .c-scrollbar:hover {
    transform: scaleY(1.3)
}

.c-scrollbar_thumb {
    background-color: #000;
    border-radius: 10px;
    cursor: -webkit-grab;
    cursor: grab;
    margin: 2px;
    opacity: .5;
    position: absolute;
    right: 0;
    top: 0;
    width: 7px
}

.has-scroll-dragging .c-scrollbar_thumb {
    cursor: -webkit-grabbing;
    cursor: grabbing
}

[data-scroll-direction=horizontal] .c-scrollbar_thumb {
    bottom: 0;
    right: auto
}

html.has-scroll-smooth {
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}